package PhamVanHien_XML_EXAM;

import java.util.List;

import vn.edu.imic.XmlProcess.XMLManagements;

public class Controllers {
	private Models m_objModels;
	private XMLManagements objXML;

	public Controllers() {
		m_objModels = new Models();
		objXML = new XMLManagements();
	}

	public boolean KTEmail(String Email) {
		return m_objModels.CheckEmail(Email);
	}

	public boolean WriteXML(List<Object> lisField,
			List<List<Object>> lisValues, String rootNode, String elementNode,
			String resource, String fileName, boolean writeType)
			throws Exception {
		boolean b;
		b = objXML.WriteDataXML(lisField, lisValues, rootNode, elementNode,
				resource, fileName, writeType);
		return b;
	}
}
